package com.ruoyi.system.service.construction.impl;

import com.ruoyi.system.domain.construction.StrategyVr;
import com.ruoyi.system.mapper.construction.StrategyVrMapper;
import com.ruoyi.system.service.construction.StrategyVrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StrategyVrServiceImpl implements StrategyVrService {

    @Autowired
    private StrategyVrMapper strategyVrMapper;

    /**
     * 查询施工攻略全景VR
     *
     * @param vrId 施工攻略全景VRID
     * @return 施工攻略全景VR
     */
    @Override
    public StrategyVr selectStrategyVrById(Long vrId)
    {
        return strategyVrMapper.selectStrategyVrById(vrId);
    }

    /**
     * 查询施工攻略全景VR列表
     *
     * @param strategyVr 施工攻略全景VR
     * @return 施工攻略全景VR
     */
    @Override
    public List<StrategyVr> selectStrategyVrList(StrategyVr strategyVr)
    {
        return strategyVrMapper.selectStrategyVrList(strategyVr);
    }

    /**
     * 新增施工攻略全景VR
     *
     * @param strategyVr 施工攻略全景VR
     * @return 结果
     */
    @Override
    public int insertStrategyVr(StrategyVr strategyVr)
    {
        return strategyVrMapper.insertStrategyVr(strategyVr);
    }

    /**
     * 修改施工攻略全景VR
     *
     * @param strategyVr 施工攻略全景VR
     * @return 结果
     */
    @Override
    public int updateStrategyVr(StrategyVr strategyVr)
    {
        return strategyVrMapper.updateStrategyVr(strategyVr);
    }

    /**
     * 批量删除施工攻略全景VR
     *
     * @param vrIds 需要删除的施工攻略全景VRID
     * @return 结果
     */
    @Override
    public int deleteStrategyVrByIds(Long[] vrIds)
    {
        return strategyVrMapper.deleteStrategyVrByIds(vrIds);
    }

    /**
     * 删除施工攻略全景VR信息
     *
     * @param vrId 施工攻略全景VRID
     * @return 结果
     */
    @Override
    public int deleteStrategyVrById(Long vrId)
    {
        return strategyVrMapper.deleteStrategyVrById(vrId);
    }
}
